#ifndef SINGLETON_H
#define SINGLETON_H

template <class T>
class Singleton
{
public:
	static T* Instance()
	{
		static T* t = 0;
        if(t == 0)
        {
            t = new T;
        }
		return t;
	}
    static void Kill()
    {
        delete Instance();
    }
};

#endif
